package com.gem.service;

import com.gem.domain.CCrParticipant;
import com.gem.domain.CompanyContact;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Apolar_GuanYH-管阳红
 * Description: 参与人中间表接口
 * create 2019/10/30 14:55
 * Modified By:
 */
@Service
public interface CCrParticipantService {

    //查询所有
    List<CCrParticipant> selectAllCPService();

    //按编号查询
    CCrParticipant selectCPByIdService(Integer cpId);

    //按企业-合作成果编号查询
    List<CCrParticipant> selectCPByccIdService(Integer ccId);

    //按企业-合作成果编号查所有参与人
    List<CompanyContact> selectConByccIdService(Integer ccId);

    //添加
    boolean addCPService(CompanyContact companyContact, String ccId);

    //单个删除
    boolean deleteCPService(Integer cpId);

    //批量删除
    boolean deleteCPsService(String[] cpIdArr);

}
